package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
@Component
@TableName("user_role")
public class UserRole implements Serializable {

    private Integer id;
    private Integer userId;
    private Integer roleId;
    private Role role;
}
